import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);

export default new Vuex.Store({
	state: { //存放状态
		user: {}
	},
	mutations: {
		setUser(state, e) {
			state.user = e
			console.log(state.user);
		}
	},
	actions: {

	}
})